<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
	xmlns:rich="http://richfaces.ajax4jsf.org/rich" xml:lang="en">
<head>
<title>培训需求处理表</title>
<meta http-equiv="keywords" content="enter,your,keywords,here" />
<meta http-equiv="description"
	content="A short description of this page." />
<link
	href="#{facesContext.externalContext.requestContextPath}/css/public.css"
	rel="stylesheet" type="text/css" media="screen" />
<link
	href="#{facesContext.externalContext.requestContextPath}/css/main.css"
	rel="stylesheet" type="text/css" media="screen" />
<link
	href="#{facesContext.externalContext.requestContextPath}/css/work.css"
	rel="stylesheet" type="text/css" media="screen" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<!-- rich:message style-->
<style type="text/css">
	.rich-message-label{
		color:red;
	}
</style>
</head>
<body style="background-color: #ffffff">
<a4j:form>
	<div id="right">
	<div id="msgid" class="error pt10p bcf c0 tal" style="display: ">
	<a4j:outputPanel id="msgPanel">
		<center><h:outputText styleClass="cff" value="#{ReequireBB.msg}" />
		<br /><h:outputText  value="【如果更换查询条件后需要导出，请先查询，否则可能出现乱数据】" />
		</center>
	</a4j:outputPanel></div>
	<div class="tablelist">
	<table width="100%" border="1" cellpadding="0" cellspacing="0"
		bordercolor="#c3c3c3" style="border-collapse: collapse">
		<tr>
			<td>时间段　从 <rich:calendar id="begindate"
				datePattern="yyyy-MM-dd" value="#{ReequireBB.start_date}"></rich:calendar>
				至 <rich:calendar id="enddate"
				datePattern="yyyy-MM-dd" value="#{ReequireBB.end_date}"></rich:calendar></td>
			<td>OFFICE<h:selectOneMenu
				class="style_input" value="#{ReequireBB.office_code}">
				<f:selectItem />
				<f:selectItems value="#{otherParamBB.selectItems_officeInfId}" />
			</h:selectOneMenu></td>
			<td><h:commandButton class="buttonbg" value="查询"
				action="#{ReequireBB.query}" reRender="traintable,msgPanel,cutpage" /></td>
		</tr>
	</table>
	</div>
	<div class="tablelist2"><rich:dataTable id="traintable"
		rowClasses=",yellow" width="100%" value="#{ReequireBB.requires}"
		var="table">
		<a4j:keepAlive beanName="ReequireBB" />
		<f:facet name="header">
			<rich:columnGroup>
				<rich:column>
					<h:outputText value="OFFICE" />
				</rich:column>
				<rich:column>
					<h:outputText value="提交培训需求数" />
				</rich:column>
				<rich:column>
					<h:outputText value="培训需求阅读数" />
				</rich:column>
				<rich:column>
					<h:outputText value="阅读率" />
				</rich:column>
			</rich:columnGroup>
		</f:facet>
		<rich:columnGroup>
			<rich:column>
				<h:outputText value="#{table.office_code_value}" />
			</rich:column>
			<rich:column>
				<h:outputText value="#{table.count}" />
			</rich:column>
			<rich:column>
				<h:outputText value="#{table.read_count}" />
			</rich:column>
			<rich:column>
				<h:outputText value="#{table.read_pe}" />
			</rich:column>
		</rich:columnGroup>
	</rich:dataTable></div>
	
	<div class="listbut"><h:commandButton styleClass="buttonbg"
		value="导出excel" action="#{ReequireBB.print}" reRender="msgPanel" />
	</div>
</div>
</a4j:form>
<!-- 
<script language="javascript">
	function()
</script>
 -->
</body>
</html>

